package cn.micro.keep.accounts.entity.dto;




import cn.micro.keep.accounts.util.ValidateGroup;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@Accessors(chain = true)
@Builder
public class AccountDimCategoryDTO {
    /**
     * 账单分类主键ID
     */
    @NotNull(message = "账单分类主键ID不能为空",groups = ValidateGroup.edit.class)
    private Integer id;

    /**
     * 分类名称
     */
    @NotEmpty(message = "分类名称不能为空",groups = ValidateGroup.add.class)
    private String name;

    /**
     * 分类描述
     */
    private String descInfo;

    /**
     * 父分类ID 0:代表一级分类
     */
    @NotNull(message = "父分类不能为空",groups = ValidateGroup.add.class)
    private Integer parentId;

}
